package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class BookOrder implements Serializable {
    private Integer id;
    private Integer customerId;
    private Integer bookHuman;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date bookDate;
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    private Date bookTime;
    private String retainTime;
    private Integer deposit;
    private String state;
    private Integer tableNum;
    private String phone;
    private List<OrderFood> orderFoods;

    public BookOrder() {
    }


    public BookOrder(Integer id, Integer customerId, Integer bookHuman, Date bookDate, Date bookTime, String retainTime, Integer deposit, String state, Integer tableNum, String phone, List<OrderFood> orderFoods) {
        this.id = id;
        this.customerId = customerId;
        this.bookHuman = bookHuman;
        this.bookDate = bookDate;
        this.bookTime = bookTime;
        this.retainTime = retainTime;
        this.deposit = deposit;
        this.state = state;
        this.tableNum = tableNum;
        this.phone = phone;
        this.orderFoods = orderFoods;
    }

    public void setRetainTime(String retainTime) {
        this.retainTime = retainTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getTableNum() {
        return tableNum;
    }

    public void setTableNum(Integer tableNum) {
        this.tableNum = tableNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getBookHuman() {
        return bookHuman;
    }

    public void setBookHuman(Integer bookHuman) {
        this.bookHuman = bookHuman;
    }

    public Date getBookDate() {
        return bookDate;
    }

    public void setBookDate(Date bookDate) {
        this.bookDate = bookDate;
    }

    public Date getBookTime() {
        return bookTime;
    }

    public void setBookTime(Date bookTime) {
        this.bookTime = bookTime;
    }

    public String getRetainTime() {
        return retainTime;
    }

    public Integer getDeposit() {
        return deposit;
    }

    public void setDeposit(Integer deposit) {
        this.deposit = deposit;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<OrderFood> getOrderFoods() {
        return orderFoods;
    }

    public void setOrderFoods(List<OrderFood> orderFoods) {
        this.orderFoods = orderFoods;
    }
}
